package server.mapper;

import java.util.HashMap;
import java.util.Map;

/**
 * @author lyloou
 * @date 2020/07/06
 * @desc
 */
public class Mapper {

    private Map<String, Host> hostMap = new HashMap<>();

    public void put(String port, Host host) {
        hostMap.put(port, host);
    }

    public Host get(String port) {
        return hostMap.get(port);
    }

    public Map<String, Host> getHostMap() {
        return hostMap;
    }
}
